package hcn.protocol.ods.inpatient;

import ctd.util.xml.jaxb.DateTimeAdapter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by zhengz on 2016/3/25.
 */

@XmlRootElement(name = "advice")
public class AdviceBean implements Serializable {

    private static final long serialVersionUID = 7314590975927205007L;

    private String adviceId;
    private String adviceType;
    private String adviceGroup;
    private String sequence;
    private String adviceName;
    private String drugPackaging;
    private String dosage;
    private String unit;
    private String total;
    private String totalUnit;
    private String drugFormat;
    private String frequency;
    private String route;
    private Date adviceDate;
    private String adviceDoctor;
    private Date stopDate ;
    private String stopDoctor;
    private String content;

    @XmlElement
    public String getAdviceId() {
        return adviceId;
    }

    public void setAdviceId(String adviceId) {
        this.adviceId = adviceId;
    }

    @XmlElement
    public String getAdviceType() {
        return adviceType;
    }

    public void setAdviceType(String adviceType) {
        this.adviceType = adviceType;
    }

    @XmlElement
    public String getAdviceGroup() {
        return adviceGroup;
    }

    public void setAdviceGroup(String adviceGroup) {
        this.adviceGroup = adviceGroup;
    }

    @XmlElement
    public String getSequence() {
        return sequence;
    }

    public void setSequence(String sequence) {
        this.sequence = sequence;
    }

    @XmlElement
    public String getAdviceName() {
        return adviceName;
    }

    public void setAdviceName(String adviceName) {
        this.adviceName = adviceName;
    }

    @XmlElement
    public String getDrugPackaging() {
        return drugPackaging;
    }

    public void setDrugPackaging(String drugPackaging) {
        this.drugPackaging = drugPackaging;
    }

    @XmlElement
    public String getDosage() {
        return dosage;
    }

    public void setDosage(String dosage) {
        this.dosage = dosage;
    }

    @XmlElement
    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    @XmlElement
    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    @XmlElement
    public String getTotalUnit() {
        return totalUnit;
    }

    public void setTotalUnit(String totalUnit) {
        this.totalUnit = totalUnit;
    }

    @XmlElement
    public String getDrugFormat() {
        return drugFormat;
    }

    public void setDrugFormat(String drugFormat) {
        this.drugFormat = drugFormat;
    }

    @XmlElement
    public String getFrequency() {
        return frequency;
    }

    public void setFrequency(String frequency) {
        this.frequency = frequency;
    }

    @XmlElement
    public String getRoute() {
        return route;
    }

    public void setRoute(String route) {
        this.route = route;
    }

    @XmlElement
    @XmlJavaTypeAdapter(DateTimeAdapter.class)
    public Date getAdviceDate() {
        return adviceDate;
    }

    public void setAdviceDate(Date adviceDate) {
        this.adviceDate = adviceDate;
    }

    @XmlElement
    public String getAdviceDoctor() {
        return adviceDoctor;
    }

    public void setAdviceDoctor(String adviceDoctor) {
        this.adviceDoctor = adviceDoctor;
    }

    @XmlElement
    @XmlJavaTypeAdapter(DateTimeAdapter.class)
    public Date getStopDate() {
        return stopDate;
    }

    public void setStopDate(Date stopDate) {
        this.stopDate = stopDate;
    }

    @XmlElement
    public String getStopDoctor() {
        return stopDoctor;
    }

    public void setStopDoctor(String stopDoctor) {
        this.stopDoctor = stopDoctor;
    }

    @XmlElement
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
